
<%@ page import="comptadub.Parametre" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="admin" />
        <title><g:message code="parametre.edit.label" /></title>
    </head>

    <body>
        <div class="nav">
            <span class="menuButton"><g:link class="admin" controller="parametre" action="list"><g:message code="default.admin.label" /></g:link></span>
        </div>

        <div class="body">
            <h1><g:message code="parametre.edit.label" /></h1>

            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>

            <g:hasErrors bean="${parametreInstance}">
            <div class="errors">
                <g:renderErrors bean="${parametreInstance}" as="list" />
            </div>
            </g:hasErrors>

            <g:form method="post" >
                <g:hiddenField name="id" value="${parametreInstance?.id}" />
                <g:hiddenField name="version" value="${parametreInstance?.version}" />
                
                <div class="dialog">
                    <table>
                        <tbody>
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="nom"><g:message code="parametre.nom.label" default="Nom" /></label>
                                </td>
                                <td valign="top" class="value">${fieldValue(bean: parametreInstance, field: "nom")}</td>
                            </tr>

                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="description"><g:message code="parametre.description.label" default="Description" /></label>
                                </td>
                                <td valign="top" class="value">${fieldValue(bean: parametreInstance, field: "description")}</td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="valeur"><g:message code="parametre.valeur.label" default="Valeur" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: parametreInstance, field: 'valeur', 'errors')}">
                                    <g:textField name="valeur" value="${parametreInstance?.valeur}" />
                                </td>
                            </tr>                        
                        </tbody>
                    </table>
                </div>
                
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
